<?php
define('ROOT_PATH', dirname(__FILE__));
$filepath="1.jpg";
include_once ROOT_PATH.'/service/ftp.php';
$ftp = new class_ftp('116.228.183.194',2121,'ftpglpex','web202!!#)'); // 打开FTP连接
$ftp->up_file(iconv("UTF-8","gb2312",ROOT_PATH.'/'.$filepath),iconv("UTF-8","gb2312",'/App/'. $filepath)); // 上传文件
$ftp->close();




